import http from './index'

//登录
export const login = (data) => http({
    url: '/api/login',
    method: 'post',
    data
})
//注销
export const logout = () => http({
    url: '/api/logout',
    method: 'get'
})
//判断是否登录
export const logIn = () => http({
    url: '/api/isLogin',
    method: 'get'
})
//获取用户信息
export const getuser = () => http({
    url: '/api/getUser',
    method: 'get'
})